﻿using System;
using UnityEngine;

namespace Studio
{
	// Token: 0x020005E6 RID: 1510
	public class VoiceEndChecker : MonoBehaviour
	{
		// Token: 0x06002691 RID: 9873 RVA: 0x000E17A4 File Offset: 0x000DF9A4
		private void OnDestroy()
		{
			if (Scene.isGameEnd)
			{
				return;
			}
			if (this.onEndFunc != null)
			{
				this.onEndFunc();
			}
		}

		// Token: 0x0400269A RID: 9882
		public VoiceEndChecker.OnEndFunc onEndFunc;

		// Token: 0x020005E7 RID: 1511
		// (Invoke) Token: 0x06002693 RID: 9875
		public delegate void OnEndFunc();
	}
}
